package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import java.util.Objects;

/**
 * @desc WorkTaskObjectTypeDto
 * @使用场景
 */
@Data
public class WorkTaskObjectTypeDto extends BaseDto implements Serializable {

  /**
   * 工作任务对象类型 PROJECT:项目 TASK:任务 PROBLEM:问题
   */
  @ApiModelProperty("工作任务对象类型")
  private String workTaskObjectType;

  /**
   * 工作任务对象ID
   */
  @ApiModelProperty("工作任务对象ID")
  private String workTaskObjectId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;
/**
     * 工作任务对象状态 QUESTIONABILITY:待解决 RESOLVED:已解决 OVERTIME:已超时 SHELVE:暂搁置 REJECTED:已拒绝 SUSPENDED:已挂起 CLOSED:已关闭
     */
    @ApiModelProperty("工作任务对象状态")
    private String	 workTaskObjectStatus;
/**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String	 subjectLifeCycle;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      WorkTaskObjectTypeDto that = (WorkTaskObjectTypeDto) o;
      return  workTaskObjectType == that.workTaskObjectType&&workTaskObjectId == that.workTaskObjectId&&operateTime == that.operateTime&&workTaskObjectStatus == that.workTaskObjectStatus&&subjectLifeCycle == that.subjectLifeCycle;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), workTaskObjectType,workTaskObjectId,operateTime,workTaskObjectStatus,subjectLifeCycle);
    }

}
